export const jiaoToYuan = (money) => {
  return (money / 10).toFixed(2)
}

export const thousandFormatter = (v) => {
  const str = `${v}`
  const arr = str.split('.')
  return arr[0].replace(/\d{1,3}(?=(\d{3})+$)/g, (s) => `${s},`) + (arr[1] ? `.${arr[1].substring(0, 3)}` : '')
}